package cn.com.godliu.oauth2.pojo;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.AuthorityUtils;

import java.util.Collection;
import java.util.Collections;

public class CustomUserDetails extends org.springframework.security.core.userdetails.User {

    public CustomUserDetails(Account user) {
        super(user.getUsername(), user.getPassword(), AuthorityUtils.createAuthorityList("ROLE_USER"));
    }
}
